using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Local
{
    /// <summary>
    /// <para>Combine</para>
    /// <para>Combines multiple rasters so that a unique output value is assigned to each unique combination of input values.</para>
    /// <para>合并多个栅格，以便为每个唯一的输入值组合分配一个唯一的输出值。</para>
    /// </summary>    
    [DisplayName("Combine")]
    public class Combine : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Combine()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_rasters">
        /// <para>Input rasters</para>
        /// <para>The list of input rasters to be combined.</para>
        /// <para>要合并的输入栅格列表。</para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output combined raster.</para>
        ///   <para>A unique integer value is assigned to each unique combination of input values.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出组合栅格。</para>
        ///   <para>为每个唯一的输入值组合分配一个唯一的整数值。</para>
        /// </xdoc></para>
        /// </param>
        public Combine(List<object> _in_rasters, object _out_raster)
        {
            this._in_rasters = _in_rasters;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Combine";

        public override string CallName => "sa.Combine";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_rasters, _out_raster];

        /// <summary>
        /// <para>Input rasters</para>
        /// <para>The list of input rasters to be combined.</para>
        /// <para>要合并的输入栅格列表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input rasters")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_rasters { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output combined raster.</para>
        ///   <para>A unique integer value is assigned to each unique combination of input values.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出组合栅格。</para>
        ///   <para>为每个唯一的输入值组合分配一个唯一的整数值。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public Combine SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}